package com.dfire.soa.mcsao.aspectj;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


@Aspect
@Component
@Slf4j
public class MyAspect {
    /**
     * 前置通知
     */

//    @Before("execution(* com.dfire.soa.mcsao..*(..))")

//    @Before("execution(* com.dfire.soa.mcsao.aspectj.DogService.say())")

    @Before("execution(* com.dfire.soa.mcsao.aspectj.DogService.*())")
    public void before() {
        log.warn("前置通知....");
    }
}
